package a03Collectiondemo3;

import java.util.ArrayList;
import java.util.Collection;
import java.util.function.Consumer;

public class Test2 {
    public static void main(String[] args) {
        Collection<String> coll=new ArrayList<>();
        coll.add("aaa");
        coll.add("bbb");
        coll.add("ccc");

        coll.forEach( s -> System.out.println(s));

        coll.forEach(s-> System.out.println(s));
    }
}
